package com.kaigejava.celue.oo;

/**
 * Created by kaigejava on 2019/8/9.
 * 鸭子父类 抽象的
 */
public abstract class Duck {

    public  Duck(){};
    //1：鸭子都会叫
    public void quack(){
        System.out.println("~嘎嘎叫~");
    }

    //2:抽象的外形
    public abstract void  display();

    //3:鸭子都会游泳
    public void swim(){
        System.out.println("~~swiming ~~");
    }

}
